const redis = require("redis");
const client = redis.createClient('6379', '47.93.206.48', {
    password: 'redis-18334771358'
})
console.log('链接redis')
client.on('ready', function(data){
    console.log('ready', data)
})
client.on('connect', function(data){
    console.log('connect', data)
})
client.on('reconnecting', function(data){
    console.log('reconnecting', data)
})
client.on('warning', function(data){
    console.log('warning', data)
})
client.on("error", function(error) {
    console.error(error);
  });
module.exports = client